package com.project.bean;

/**
 * 销售详情实体类
 */
public class SaleInfoBean {
    /**销售详情编号*/
    private int id;
    /**销售数量*/
    private int num;
    /**销售商品*/
    private GoodsBean goods;
    /**销售订单*/
    private SaleOrderBean salesOrder;

    public SaleInfoBean() {
    }

    public SaleInfoBean(int num, int goodsId, int salesOrderId) {
        this.num = num;
        this.goods = new GoodsBean();
        this.goods.setId(goodsId);
        this.salesOrder = new SaleOrderBean();
        this.salesOrder.setId(salesOrderId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public SaleOrderBean getSalesOrder() {
        return salesOrder;
    }

    public void setSalesOrder(SaleOrderBean salesOrder) {
        this.salesOrder = salesOrder;
    }

    @Override
    public String toString() {
        return "SaleInfoBean{" +
                "id=" + id +
                ", num=" + num +
                ", goods=" + goods +
                ", salesOrder=" + salesOrder +
                '}' + "\n";
    }
}
